package day06.homework.demo2;

import java.util.Date;

public class SalariedEmployee extends Emp{
    private double base;

    public SalariedEmployee() {
    }

    public SalariedEmployee(String name, Date birthday,double base) {
        super(name, birthday);
        this.base = base;
    }

    @Override
    public double getSalary(int month){

        return base+super.getSalary(month);
    }
}
